package com.ruoyi.recruit.service;

import java.util.List;

import com.ruoyi.recruit.domain.RecruitUser;
import com.ruoyi.recruit.domain.RecruitUserWritten;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 笔试人员成绩Service接口
 * 
 * @author ruoyi
 * @date 2022-05-05
 */
public interface IRecruitUserWrittenService extends IService<RecruitUserWritten>
{
    /**
     * 查询笔试人员成绩
     * 
     * @param id 笔试人员成绩主键
     * @return 笔试人员成绩
     */
    public RecruitUserWritten selectRecruitUserWrittenById(Long id);

    /**
     * 根据用户id查询是否存在笔试人员
     * @param contentId
     * @return
     */
    public Integer selectRecruitUserWrittenByContentId(Long contentId);

    /**
     * 查询笔试人员成绩列表
     * 
     * @param recruitUserWritten 笔试人员成绩
     * @return 笔试人员成绩集合
     */
    public List<RecruitUserWritten> selectRecruitUserWrittenList(RecruitUserWritten recruitUserWritten);

    /**
     * 新增笔试人员成绩
     * 
     * @param recruitUserWritten 笔试人员成绩
     * @return 结果
     */
    public int insertRecruitUserWritten(RecruitUserWritten recruitUserWritten);

    /**
     * 修改笔试人员成绩
     * 
     * @param recruitUserWritten 笔试人员成绩
     * @return 结果
     */
    public int updateRecruitUserWritten(RecruitUserWritten recruitUserWritten);

    /**
     * 批量删除笔试人员成绩
     * 
     * @param ids 需要删除的笔试人员成绩主键集合
     * @return 结果
     */
    public int deleteRecruitUserWrittenByIds(String ids);

    /**
     * 删除笔试人员成绩信息
     * 
     * @param id 笔试人员成绩主键
     * @return 结果
     */
    public int deleteRecruitUserWrittenById(Long id);

    /**
     * 导入笔试人员
     *
     * @param userWrittenList 笔试人员列表
     * @param operName 操作用户
     * @return 结果
     */
    public String importUserWritten(List<RecruitUserWritten> userWrittenList, Long recruitId, boolean isUpdateSupport, String operName);
}
